package com.dtcnet.skmvp.mvp.view;

import android.os.Bundle;
import android.view.LayoutInflater;

import androidx.viewbinding.ViewBinding;

import com.dtcnet.skmvp.dagger.component.AppComponent;

public interface IActivity<VB extends ViewBinding> {
    default boolean checkDataBefoAll() {
        return true;
    }

    default void registerDagger(AppComponent appComponent) {
    }

    //    int getContentView();
//    View getContentView();
    VB viewBinding(LayoutInflater layoutInflater);

    /**
     * @param savedInstanceState
     * @return true:继续执行initLoadData，false：不再执行initLoadData
     */
    default boolean dataRecovery(Bundle savedInstanceState) {
        return true;
    }

    default void initBindWidget() {
    }

    default void initSetListener() {
    }

    default void initLoadData() {
    }

    void exit();
}
